<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>修改失物招领-大连交通大学在线服务平台</title>
<link href="../css/bootstrap.min.css" rel="stylesheet" />
<link href="../css/font-awesome.min.css" rel="stylesheet" />
<link href="../css/common.css" rel="stylesheet" />
<link href="../images/favicon.ico" rel="shortcut icon" />
<script src="../js/jquery.min.js"></script>
<script src="../js/bootstrap.js"></script>
<script src="../js/bootstrapValidator.min.js"></script>
<script src="../js/language/zh_CN.js"></script>
<script src="../js/common.js"></script>
<script>
	$(document).ready(function() {
		$('#lostAddForm').bootstrapValidator();
	});
</script>
</head>
<body>
	<div class="center-block-2">
		<div class="list-group">
			<p class="list-group-item active">
				<img src="../images/lost.png" width="20px" height="20px" alt="" /> 修改失物招领：
			</p>
			<div class="row" style="position: relative; left: 100px; width: 500px;">
				<form id="lostAddForm" action="lost_i_update.do?uid=${user.uid}&lid=${update_lost.lid}" method="post"
					class="form-horizontal" data-bv-message="此项为必填项" data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
					data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
					data-bv-feedbackicons-validating="glyphicon glyphicon-refresh" enctype="multipart/form-data">
					<div class="form-group">
						<label class="col-md-2 control-label">物品名称:</label>
						<div class="col-md-10">
							<input type="text" value="${update_lost.name}" name="lost.name" class="form-control"
								data-bv-notempty="true" placeholder="钱包|银行卡" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label">捡到地点:</label>
						<div class="col-md-10">
							<input type="text" value="${update_lost.location}" name="lost.location" class="form-control"
								data-bv-notempty="true" placeholder="图书馆|体育馆" />
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label">捡到时间:</label>
						<div class="input-group date form_date" data-date-format="yyyy-mm-dd HH:ii:ss"
							style="margin-left: 10px; padding-right: 0px">
							<input type="text" value="<fmt:formatDate value="${update_lost.losttime}" pattern="yyyy-MM-dd hh:mm:ss" />"
								name="lost.losttime" class="form-control" /><span class="input-group-addon"><span
								class="glyphicon glyphicon-calendar"></span></span>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label">上传截图:</label>
						<div class="col-md-10">
							<input name="image" type="file" class="form-control"/>
						</div>
					</div>
					<div class="form-group">
						<label class="col-md-2 control-label">您的联系电话：</label>
						<div class="col-md-10">
							<input type="text" value="${update_lost.phone}" name="lost.phone" class="form-control"
								data-bv-regexp="true" data-bv-regexp-regexp="(1[^1247]\d{9})|(0\d{2}[- ]?\d{8})"
								data-bv-regexp-message="电话号码格式错误" />
						</div>
					</div>
					<div class="form-group">
						<div class="col-md-10 col-md-offset-2">
							<button type="submit" class="btn btn-sm btn-success glyphicon glyphicon-ok">&nbsp;发布!</button>${user_lost_update_msg}
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$('.form_date').datetimepicker({
			language : 'zh',
			weekStart : 1,
			todayBtn : 1,
			autoclose : 1,
			todayHighlight : 1,
			startView : 2,
			minView : 0,
			maxView : 2,
			forceParse : 0
		});
	</script>
</body>
</html>